'use strict';
const Controller = require('egg').Controller;
    /**
     * @params {id}
     * @bussiness {小说目录}
     * @author JC
     * @date 2022-08-15
     * **/
class Chapter extends Controller {
    async chapter (){
        const {ctx} = this;
        const params = ctx.request.body;
        let result = await ctx.service.chapter.chapter(params.chapter_book_id)
        ctx.body = {
            msg:200,
            data:result,
            code:2002
        }
    }
}
module.exports = Chapter;